package com.ruoyi.commodity.mapper;

import com.ruoyi.commodity.domain.Commodity;
import com.ruoyi.commodity.domain.CommodityType;
import com.ruoyi.commodity.domain.vo.CommodityQueryVo;
import com.ruoyi.commodity.domain.vo.CommodityVo;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityMapper {


    public Commodity checkCommodityNameUnique(String name);

    public int insertCommodity(Commodity commodity);

    int deleteCommodityById(Long commodityId);

    int updateCommodity(Commodity commodity);

    CommodityVo selectCommodityById(Long commodityId);

    List<CommodityVo> selectCommodityList(CommodityQueryVo commodityQueryVo);


}
